package jam.network.message;

import jam.network.NetworkController;
import java.util.Scanner;

public class ServerActionJoin extends ServerAction {

	public static void process(String msg) {

		Scanner s = new Scanner(msg);
		s.useDelimiter(":");

		//skip keyword and transID
		s.next();
		int id = s.nextInt();

		String channel = s.next();
		String user = s.next();

		System.out.println(user + " has joined " + channel + " - re paint contact list??");

		NetworkController.send( ("SA_JOIN:" + id + ":TRUE") );
	}

}